package com.thiswhyme.openfeign.gson.adapter.requestparam;

import org.springframework.cloud.openfeign.FeignFormatterRegistrar;
import org.springframework.format.FormatterRegistry;

/**
 * @description: feign参数Formatter注册器
 * @author: thiswhyme
 * @date: 2020/8/24
 */
public class GsonFeignFormatterRegistrar implements FeignFormatterRegistrar {

    @Override
    public void registerFormatters(FormatterRegistry registry) {
        registry.addConverter(new ObjectToJsonRequestParamConverter());
    }
}
